package com.ordertracker;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

import java.util.TimeZone;

/**
 * Description of class.
 * Created 11/23/12 7:41 PM
 *
 * @author andrey.rodin@playtech.com
 */

public class ApplicationConfig implements ApplicationContextAware {

    private ApplicationContext context;
    private TimeZone timezone;
    private String authorizationType;
    private String hostname;

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        context = applicationContext;
    }

    public ApplicationContext getContext() {
        return context;
    }

    public TimeZone getTimezone() {
        return timezone;
    }

    public void setTimezone(TimeZone timezone) {
        this.timezone = timezone;
    }

    public String getAuthorizationType() {
        return authorizationType;
    }

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public void setAuthorizationType(String authorizationType) {
        this.authorizationType = authorizationType;
    }
}
